package RemotePlay.Server;

import RemotePlay.Server.*;
import java.rmi.*;
import java.rmi.server.UnicastRemoteObject;

public class RemoteConcreteSubject extends UnicastRemoteObject
        implements RemoteSubject {
    double height,width;
    public RemoteConcreteSubject()throws RemoteException{
    };

    public void setHeight(double height) throws RemoteException {
        this.height = height;
    }

    public void setWidth(double width) throws RemoteException {
        this.width = width;
    }

    public double getArea() throws RemoteException {
        return height * width;
    }
}
